package com.tan.api.controller.user;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tan.common.dto.user.UserCreateDto;
import com.tan.common.dto.user.UserUpdateDto;
import com.tan.common.query.user.UserQuery;
import com.tan.common.vo.auth.CaptchaResult;
import com.tan.common.vo.user.UserPages;
import com.tan.core.response.ApiResponse;
import com.tan.user.service.IAuthService;
import com.tan.user.service.ISysUserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author Tan
 * @since 2025-01-27
 */
@RestController
@RequestMapping("/sys/auth")
public class SysAuthController {

    @Resource
    private ISysUserService userService;
    @Resource
    private IAuthService authService;


    @GetMapping("/captcha")
    public ApiResponse<CaptchaResult> getCaptcha() {
        return ApiResponse.success(authService.getCaptcha());
    }
}
